﻿<Page x:Class="SdbS.View_Guest.Pages.TypeMachines"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SdbS.View_Guest.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="TypeMachines">

    <!--Кастомный ListBox-->
    <Page.Resources>
        <DataTemplate x:Key="CustomListBox">
            <Grid Background="#FFEAE4E4">

                <Label Content="{Binding Name}"
                       Grid.Column="0"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Left"
                       BorderBrush="Black"
                       BorderThickness="1"
                       Width="365"
                       Margin="5"/>

            </Grid>
        </DataTemplate>
    </Page.Resources>

    <Grid Background="White">

        <Image Source="/Images/MainMenu/logo.png"
               Width="60"
               Height="60"
               VerticalAlignment="Bottom"
               HorizontalAlignment="Right"
               Margin="10"/>

        <GroupBox Header="Типы станков"
                  Margin="200 70 200 150"
                  FontSize="15"
                  BorderBrush="Black"
                  BorderThickness="2">

            <ListBox Grid.Row="1"
                             ItemTemplate="{DynamicResource CustomListBox}" 
                             Name="listBox_TypeMachines"
                             BorderThickness="0"
                             d:ItemsSource="{d:SampleData ItemCount=3}"></ListBox>
        </GroupBox>

    </Grid>
</Page>
